package com.example.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@Schema(description ="学生信息")
public class StudentVo implements Serializable {
    @Schema(description="学生id")
    private Integer id;

    @Schema(description="学生姓名")
    private String name;

    @Schema(description="学号")
    private Long no;

    @Schema(description="性别")
    private Boolean gender;

    @Schema(description="入学时间")
    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
    private Date enrolledTime;

    @Schema(description="密码")
    private String password;

    private static final long serialVersionUID = 1L;
}
